/**
 *  globals.h
 *  AwkwardCubed
 *
 *  Date: 20/08/2013
 *
 *  Language: C++
 *
 *  @author Carl mcCaffrey
 *
 */

/* Useful Typedefs */
typedef unsigned char		byte;	// 8  Bits
typedef unsigned short		word;	// 16 Bits
typedef unsigned int		uint;	// 32 Bits
typedef unsigned long		ulong;	// 32 Bits
typedef __int32				int32;	// 32 Bits
typedef unsigned __int32	uint32;	// 32 Bits
typedef __int64				int64;	// 64 Bits
typedef unsigned __int64	uint64;	// 64 Bits

/* Delete COM Object */
#define ReleaseCOM(x){											\
	if(x){														\
		x->Release();											\
		x = NULL;												\
	}															\
}

/* Delete Pointer */
#define SafeDelete(x){											\
	delete x;													\
	x = NULL;													\
}

#ifdef _DEBUG
#define WINDOW_TITLE		"AwkwardCubed - Engine (Debug)"
#else // _DEBUG
#define WINDOW_TITLE		"AwkwardCubed - Engine"
#endif // _DEBUG
#define WINDOW_ICON			"icon.ico"

#include "sys/debug.h"